<%@page language="C#" validateRequest="false" Debug="true" CodeFile="app_load.aspx.cs" Inherits="P" %>
<%@import namespace="System.Collections.Generic" %>
<script runat="server">
    
    private static P p = null;
    
    protected void Page_Load( object sender,EventArgs e )
    {
        string view = Request.QueryString["view"];
        if( !string.IsNullOrEmpty(view) )
        {
            view = view.ToLower();
            if( null==Application[view] )
            {
                Response.Write( "没有找到您请求的应用程序!" );
                Response.End();
            }
        }
        else
        {
            Response.Write( "没有找到您请求的应用程序!" );
            Response.End();
        }
        
        if( null==p )
            p = new P( new AccountUiJson( Application["account"] ),
                       new CmsUiJson( Application["cms"] ) 
                     );

        string op = Request.QueryString["op"];
        if( string.IsNullOrEmpty(op) )
            Response.End();

        Response.Write( p.Execute(op) );
    }

</script>